package org.uim.cricket.analyzer.analyze.impl;

import java.util.List;
import java.util.Map;

import org.uim.cricket.analyzer.analyze.Alogger;
import org.uim.cricket.entities.MatchPlayer;
import org.uim.cricket.entities.Player;
import org.uim.cricket.entities.match.CricketMatch;

public class DebutPlayerInfoAnalyzer extends PlayerListFinderAnalyzer {
	
	@Override
	public void doAnalyze(CricketMatch match, Map<String, List<MatchPlayer>> players) throws Exception {
		if (match == null || players == null) return;
		
		try {
			
			if (match.getDebutPlayers() == null) return;
			Player[] debuts = match.getDebutPlayers();
			
			Alogger.debug(" ***** Mapping debut players... ");
			
			this.startFinding(players, debuts);
			
		} catch (Exception ex) {
			
		}
		
		Alogger.debug("        Completed!");
		
	}
	
}
